// import apilist from './apilist';
export default {
  moduleClientRoute: {    //路由属性
    state: {
      page: 7,   //表格当页 条数
      name: 'admin',
      password: 621000,
      flag: 0,
      addgoodsflag: 0,
      token:'',
      // lugege
      orderId:0, //存放订单ID
    },
    mutations: {
      goodsflag(state, flag) {
        state.addgoodsflag = flag;
      },
      SetToken(state,flag){
        state.token = flag;
      }
    },
    actions: {},
    getters: {
      Obtaingoodsflag: state => {
        return state.addgoodsflag;
      },
      GetToken: state =>{
      return state.token;
      }
    }
  },


  moduleClientarray: {//  存放数组
    state: {
      goods: [],//修改商品数组
      goodsinfo:[],//点击进入商品详情
      userinfo:[],//存放用户数组
    },
    mutations: {
      Deposit(state, arr){
        state.goods = arr
      },
      addgoodsinfo(state, arr){
        state.goodsinfo = arr
      },
      SetUserinfo(state,arr){//存放用户数组
        state.userinfo = arr
      },
    },
    actions: {},
    getters: {
      seegoods: state => {
        return state.goods
      },
      Releasegoodsinfo: state => {
        return state.goodsinfo
      },
      GetUserinfo: state =>{
        return state.userinfo
      },
    }
  },
}



